package com.example.onlinemonitoring.model;

import com.example.onlinemonitoring.model.common.sensor;
import java.util.Date;
import javax.persistence.*;

public class Sctmnsensor extends sensor {
    @Id
    private Long id;

    /**
     * 变电站编号
     */
    private Integer stationid;

    private Integer devicegroup;

    /**
     * 设备地址
     */
    private Integer deviceaddr;

    private String addrname;

    /**
     * 监测点
     */
    private Integer pointaddr;

    /**
     * 监测点的名称
     */
    private String pointname;

    /**
     * 数据时间
     */
    private Date lastdatatime;

    private Date lasthisdatatime;

    /**
     * A相
     */
    private Float lasta;

    /**
     * B相
     */
    private Float lastb;

    /**
     * C相
     */
    private Float lastc;

    /**
     * A相电池电压
     */
    private Float lastabv;

    /**
     * B相电池电压
     */
    private Float lastbbv;

    /**
     * C相电池电压
     */
    private Float lastcbv;

    /**
     * 报警级别。0=正常，1=预警，2=报警
     */
    private Integer lastalarmlevel;

    /**
     * 上次报警信息。如果无报警，则置为空文本。
     */
    private String lastalarmmessage;

    /**
     * 通信状态。0表示正常，1表示异常。不论通信成功或者失败，都必须修改此值。
     */
    private Integer lastcommunicationstatus;

    private Float aalarmvalue;

    private Float aalarmrelievevalue;

    private Float awarnvalue;

    private Float awarnrelievevalue;

    private Integer lastaalarmstatus;

    private Float balarmvalue;

    private Float balarmrelievevalue;

    private Float bwarnvalue;

    private Float bwarnrelievevalue;

    private Integer lastbalarmstatus;

    private Float calarmvalue;

    private Float calarmrelievevalue;

    private Float cwarnvalue;

    private Float cwarnrelievevalue;

    private Integer lastcalarmstatus;

    private Float bvwarnvalue;

    private Float bvwarnrelievevalue;

    private Float bvalarmvalue;

    private Float bvalarmrelievevalue;

    private Float offset;

    private Float cof;

    public Float getCof() {
        return cof;
    }

    public void setCof(Float cof) {
        this.cof = cof;
    }

    /**
     * A相电池电压
     */
    private Integer lastabvalarmstatus;

    /**
     * B相电池电压
     */
    private Integer lastbbvalarmstatus;

    /**
     * C相电池电压
     */
    private Integer lastcbvalarmstatus;

    /**
     * 备注信息
     */
    private String memo;

    /**
     * 是否投运
     */
    private Integer inuse;

    /**
     * 字段的显示和隐藏
     */
    private String style;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取变电站编号
     *
     * @return stationid - 变电站编号
     */
    public Integer getStationid() {
        return stationid;
    }

    /**
     * 设置变电站编号
     *
     * @param stationid 变电站编号
     */
    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    /**
     * @return devicegroup
     */
    public Integer getDevicegroup() {
        return devicegroup;
    }

    /**
     * @param devicegroup
     */
    public void setDevicegroup(Integer devicegroup) {
        this.devicegroup = devicegroup;
    }

    /**
     * 获取设备地址
     *
     * @return deviceaddr - 设备地址
     */
    public Integer getDeviceaddr() {
        return deviceaddr;
    }

    /**
     * 设置设备地址
     *
     * @param deviceaddr 设备地址
     */
    public void setDeviceaddr(Integer deviceaddr) {
        this.deviceaddr = deviceaddr;
    }

    /**
     * @return addrname
     */
    public String getAddrname() {
        return addrname;
    }

    /**
     * @param addrname
     */
    public void setAddrname(String addrname) {
        this.addrname = addrname;
    }

    /**
     * 获取监测点
     *
     * @return pointaddr - 监测点
     */
    public Integer getPointaddr() {
        return pointaddr;
    }

    /**
     * 设置监测点
     *
     * @param pointaddr 监测点
     */
    public void setPointaddr(Integer pointaddr) {
        this.pointaddr = pointaddr;
    }

    /**
     * 获取监测点的名称
     *
     * @return pointname - 监测点的名称
     */
    public String getPointname() {
        return pointname;
    }

    /**
     * 设置监测点的名称
     *
     * @param pointname 监测点的名称
     */
    public void setPointname(String pointname) {
        this.pointname = pointname;
    }

    /**
     * 获取数据时间
     *
     * @return lastdatatime - 数据时间
     */
    public Date getLastdatatime() {
        return lastdatatime;
    }

    /**
     * 设置数据时间
     *
     * @param lastdatatime 数据时间
     */
    public void setLastdatatime(Date lastdatatime) {
        this.lastdatatime = lastdatatime;
    }

    /**
     * @return lasthisdatatime
     */
    public Date getLasthisdatatime() {
        return lasthisdatatime;
    }

    /**
     * @param lasthisdatatime
     */
    public void setLasthisdatatime(Date lasthisdatatime) {
        this.lasthisdatatime = lasthisdatatime;
    }

    /**
     * 获取A相
     *
     * @return lasta - A相
     */
    public Float getLasta() {
        return lasta;
    }

    /**
     * 设置A相
     *
     * @param lasta A相
     */
    public void setLasta(Float lasta) {
        this.lasta = lasta;
    }

    /**
     * 获取B相
     *
     * @return lastb - B相
     */
    public Float getLastb() {
        return lastb;
    }

    /**
     * 设置B相
     *
     * @param lastb B相
     */
    public void setLastb(Float lastb) {
        this.lastb = lastb;
    }

    /**
     * 获取C相
     *
     * @return lastc - C相
     */
    public Float getLastc() {
        return lastc;
    }

    /**
     * 设置C相
     *
     * @param lastc C相
     */
    public void setLastc(Float lastc) {
        this.lastc = lastc;
    }

    /**
     * 获取A相电池电压
     *
     * @return lastabv - A相电池电压
     */
    public Float getLastabv() {
        return lastabv;
    }

    /**
     * 设置A相电池电压
     *
     * @param lastabv A相电池电压
     */
    public void setLastabv(Float lastabv) {
        this.lastabv = lastabv;
    }

    /**
     * 获取B相电池电压
     *
     * @return lastbbv - B相电池电压
     */
    public Float getLastbbv() {
        return lastbbv;
    }

    /**
     * 设置B相电池电压
     *
     * @param lastbbv B相电池电压
     */
    public void setLastbbv(Float lastbbv) {
        this.lastbbv = lastbbv;
    }

    /**
     * 获取C相电池电压
     *
     * @return lastcbv - C相电池电压
     */
    public Float getLastcbv() {
        return lastcbv;
    }

    /**
     * 设置C相电池电压
     *
     * @param lastcbv C相电池电压
     */
    public void setLastcbv(Float lastcbv) {
        this.lastcbv = lastcbv;
    }

    /**
     * 获取报警级别。0=正常，1=预警，2=报警
     *
     * @return lastalarmlevel - 报警级别。0=正常，1=预警，2=报警
     */
    public Integer getLastalarmlevel() {
        return lastalarmlevel;
    }

    /**
     * 设置报警级别。0=正常，1=预警，2=报警
     *
     * @param lastalarmlevel 报警级别。0=正常，1=预警，2=报警
     */
    public void setLastalarmlevel(Integer lastalarmlevel) {
        this.lastalarmlevel = lastalarmlevel;
    }

    /**
     * 获取上次报警信息。如果无报警，则置为空文本。
     *
     * @return lastalarmmessage - 上次报警信息。如果无报警，则置为空文本。
     */
    public String getLastalarmmessage() {
        return lastalarmmessage;
    }

    /**
     * 设置上次报警信息。如果无报警，则置为空文本。
     *
     * @param lastalarmmessage 上次报警信息。如果无报警，则置为空文本。
     */
    public void setLastalarmmessage(String lastalarmmessage) {
        this.lastalarmmessage = lastalarmmessage;
    }

    /**
     * 获取通信状态。0表示正常，1表示异常。不论通信成功或者失败，都必须修改此值。
     *
     * @return lastcommunicationstatus - 通信状态。0表示正常，1表示异常。不论通信成功或者失败，都必须修改此值。
     */
    public Integer getLastcommunicationstatus() {
        return lastcommunicationstatus;
    }

    /**
     * 设置通信状态。0表示正常，1表示异常。不论通信成功或者失败，都必须修改此值。
     *
     * @param lastcommunicationstatus 通信状态。0表示正常，1表示异常。不论通信成功或者失败，都必须修改此值。
     */
    public void setLastcommunicationstatus(Integer lastcommunicationstatus) {
        this.lastcommunicationstatus = lastcommunicationstatus;
    }

    /**
     * @return aalarmvalue
     */
    public Float getAalarmvalue() {
        return aalarmvalue;
    }

    /**
     * @param aalarmvalue
     */
    public void setAalarmvalue(Float aalarmvalue) {
        this.aalarmvalue = aalarmvalue;
    }

    /**
     * @return aalarmrelievevalue
     */
    public Float getAalarmrelievevalue() {
        return aalarmrelievevalue;
    }

    /**
     * @param aalarmrelievevalue
     */
    public void setAalarmrelievevalue(Float aalarmrelievevalue) {
        this.aalarmrelievevalue = aalarmrelievevalue;
    }

    /**
     * @return awarnvalue
     */
    public Float getAwarnvalue() {
        return awarnvalue;
    }

    /**
     * @param awarnvalue
     */
    public void setAwarnvalue(Float awarnvalue) {
        this.awarnvalue = awarnvalue;
    }

    /**
     * @return awarnrelievevalue
     */
    public Float getAwarnrelievevalue() {
        return awarnrelievevalue;
    }

    /**
     * @param awarnrelievevalue
     */
    public void setAwarnrelievevalue(Float awarnrelievevalue) {
        this.awarnrelievevalue = awarnrelievevalue;
    }

    /**
     * @return lastaalarmstatus
     */
    public Integer getLastaalarmstatus() {
        return lastaalarmstatus;
    }

    /**
     * @param lastaalarmstatus
     */
    public void setLastaalarmstatus(Integer lastaalarmstatus) {
        this.lastaalarmstatus = lastaalarmstatus;
    }

    /**
     * @return balarmvalue
     */
    public Float getBalarmvalue() {
        return balarmvalue;
    }

    /**
     * @param balarmvalue
     */
    public void setBalarmvalue(Float balarmvalue) {
        this.balarmvalue = balarmvalue;
    }

    /**
     * @return balarmrelievevalue
     */
    public Float getBalarmrelievevalue() {
        return balarmrelievevalue;
    }

    /**
     * @param balarmrelievevalue
     */
    public void setBalarmrelievevalue(Float balarmrelievevalue) {
        this.balarmrelievevalue = balarmrelievevalue;
    }

    /**
     * @return bwarnvalue
     */
    public Float getBwarnvalue() {
        return bwarnvalue;
    }

    /**
     * @param bwarnvalue
     */
    public void setBwarnvalue(Float bwarnvalue) {
        this.bwarnvalue = bwarnvalue;
    }

    /**
     * @return bwarnrelievevalue
     */
    public Float getBwarnrelievevalue() {
        return bwarnrelievevalue;
    }

    /**
     * @param bwarnrelievevalue
     */
    public void setBwarnrelievevalue(Float bwarnrelievevalue) {
        this.bwarnrelievevalue = bwarnrelievevalue;
    }

    /**
     * @return lastbalarmstatus
     */
    public Integer getLastbalarmstatus() {
        return lastbalarmstatus;
    }

    /**
     * @param lastbalarmstatus
     */
    public void setLastbalarmstatus(Integer lastbalarmstatus) {
        this.lastbalarmstatus = lastbalarmstatus;
    }

    /**
     * @return calarmvalue
     */
    public Float getCalarmvalue() {
        return calarmvalue;
    }

    /**
     * @param calarmvalue
     */
    public void setCalarmvalue(Float calarmvalue) {
        this.calarmvalue = calarmvalue;
    }

    /**
     * @return calarmrelievevalue
     */
    public Float getCalarmrelievevalue() {
        return calarmrelievevalue;
    }

    /**
     * @param calarmrelievevalue
     */
    public void setCalarmrelievevalue(Float calarmrelievevalue) {
        this.calarmrelievevalue = calarmrelievevalue;
    }

    /**
     * @return cwarnvalue
     */
    public Float getCwarnvalue() {
        return cwarnvalue;
    }

    /**
     * @param cwarnvalue
     */
    public void setCwarnvalue(Float cwarnvalue) {
        this.cwarnvalue = cwarnvalue;
    }

    /**
     * @return cwarnrelievevalue
     */
    public Float getCwarnrelievevalue() {
        return cwarnrelievevalue;
    }

    /**
     * @param cwarnrelievevalue
     */
    public void setCwarnrelievevalue(Float cwarnrelievevalue) {
        this.cwarnrelievevalue = cwarnrelievevalue;
    }

    /**
     * @return lastcalarmstatus
     */
    public Integer getLastcalarmstatus() {
        return lastcalarmstatus;
    }

    /**
     * @param lastcalarmstatus
     */
    public void setLastcalarmstatus(Integer lastcalarmstatus) {
        this.lastcalarmstatus = lastcalarmstatus;
    }

    /**
     * @return bvwarnvalue
     */
    public Float getBvwarnvalue() {
        return bvwarnvalue;
    }

    /**
     * @param bvwarnvalue
     */
    public void setBvwarnvalue(Float bvwarnvalue) {
        this.bvwarnvalue = bvwarnvalue;
    }

    /**
     * @return bvwarnrelievevalue
     */
    public Float getBvwarnrelievevalue() {
        return bvwarnrelievevalue;
    }

    /**
     * @param bvwarnrelievevalue
     */
    public void setBvwarnrelievevalue(Float bvwarnrelievevalue) {
        this.bvwarnrelievevalue = bvwarnrelievevalue;
    }

    /**
     * @return bvalarmvalue
     */
    public Float getBvalarmvalue() {
        return bvalarmvalue;
    }

    /**
     * @param bvalarmvalue
     */
    public void setBvalarmvalue(Float bvalarmvalue) {
        this.bvalarmvalue = bvalarmvalue;
    }

    /**
     * @return bvalarmrelievevalue
     */
    public Float getBvalarmrelievevalue() {
        return bvalarmrelievevalue;
    }

    /**
     * @param bvalarmrelievevalue
     */
    public void setBvalarmrelievevalue(Float bvalarmrelievevalue) {
        this.bvalarmrelievevalue = bvalarmrelievevalue;
    }

    /**
     * 获取A相电池电压
     *
     * @return lastabvalarmstatus - A相电池电压
     */
    public Integer getLastabvalarmstatus() {
        return lastabvalarmstatus;
    }

    /**
     * 设置A相电池电压
     *
     * @param lastabvalarmstatus A相电池电压
     */
    public void setLastabvalarmstatus(Integer lastabvalarmstatus) {
        this.lastabvalarmstatus = lastabvalarmstatus;
    }

    /**
     * 获取B相电池电压
     *
     * @return lastbbvalarmstatus - B相电池电压
     */
    public Integer getLastbbvalarmstatus() {
        return lastbbvalarmstatus;
    }

    /**
     * 设置B相电池电压
     *
     * @param lastbbvalarmstatus B相电池电压
     */
    public void setLastbbvalarmstatus(Integer lastbbvalarmstatus) {
        this.lastbbvalarmstatus = lastbbvalarmstatus;
    }

    /**
     * 获取C相电池电压
     *
     * @return lastcbvalarmstatus - C相电池电压
     */
    public Integer getLastcbvalarmstatus() {
        return lastcbvalarmstatus;
    }

    /**
     * 设置C相电池电压
     *
     * @param lastcbvalarmstatus C相电池电压
     */
    public void setLastcbvalarmstatus(Integer lastcbvalarmstatus) {
        this.lastcbvalarmstatus = lastcbvalarmstatus;
    }

    /**
     * 获取备注信息
     *
     * @return memo - 备注信息
     */
    public String getMemo() {
        return memo;
    }

    /**
     * 设置备注信息
     *
     * @param memo 备注信息
     */
    public void setMemo(String memo) {
        this.memo = memo;
    }

    /**
     * 获取是否投运
     *
     * @return inuse - 是否投运
     */
    public Integer getInuse() {
        return inuse;
    }

    /**
     * 设置是否投运
     *
     * @param inuse 是否投运
     */
    public void setInuse(Integer inuse) {
        this.inuse = inuse;
    }

    /**
     * 获取字段的显示和隐藏
     *
     * @return style - 字段的显示和隐藏
     */
    public String getStyle() {
        return style;
    }

    /**
     * 设置字段的显示和隐藏
     *
     * @param style 字段的显示和隐藏
     */
    public void setStyle(String style) {
        this.style = style;
    }

    public Float getOffset() {
        return offset;
    }

    public void setOffset(Float offset) {
        this.offset = offset;
    }
}